<?php


namespace app\wechat\validate;


use think\Validate;

class Account extends Validate
{
    protected $rule=[
        'game_nickname'=>'require|max:40',
        'game_label'=>'require|max:20',
//        'game_grade'=>'require|number|between:1,1000',
    ];
    protected $message=[
        'game_nickname.require'=>'请填写游戏昵称',
        'game_nickname.max'=>'游戏昵称不能超过40个字符',
        'game_label.require'=>'请填写游戏标签',
        'game_label.max'=>'游戏标签不能超过20个字符',
//        'game_grade.require'=>'等级不能为空',
//        'game_grade.number'=>'等级必须是数组',
//        'game_grade.between'=>'等级只能在1-1000之间',
    ];
}